/*
 * Copyright © 2017 Cask Data, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

$path-color: #333333;
$dropdown-box-shadow: 0 3px 15px 1px rgba(0, 0, 0, 0.3);
$dropdown-item-height: 35px;

.file-path-container {
  color: $path-color;

  a {
    color: $path-color;

    &:hover {
      text-decoration: none;
      color: $path-color;
    }

    &.active-directory {
      font-weight: 600;
    }
  }

  .path-divider {
    margin-left: 5px;
    margin-right: 5px;
  }

  .collapsed-dropdown,
  .paths {
    display: inline-block;
  }

  .collapsed-dropdown {
    .collapsed-dropdown-toggle > button {
      border: none;
      padding: 5px;
      margin-top: -5px;

      &:focus { outline: none; }
    }

    .dropdown-menu {
      top: calc(100% - 15px);
      line-height: $dropdown-item-height;
      box-shadow: $dropdown-box-shadow;

      .dropdown-item {
        padding: 0;
        height: $dropdown-item-height;

        a {
          display: inline-block;
          width: 100%;
          max-width: 350px;
          padding-left: 10px;
          padding-right: 10px;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }
      }
    }
  }
}
